package com.liyuan.help_e.model;

public class Comment {
    private Integer id;
    private Integer parentId;
    private Integer type;//判断是问题还是评论
    private User user;//谁评论的？？
    private Integer commentCount;//这条评论也可以被评论
    private String createdAt;
    private Integer praiseCount;
    private String content;

    public Comment(Integer parentId, Integer type, User user, Integer commentCount, String createdAt, Integer praiseCount, String content) {
        this.parentId = parentId;
        this.type = type;
        this.user = user;
        this.commentCount = commentCount;
        this.createdAt = createdAt;
        this.praiseCount = praiseCount;
        this.content = content;
    }

    public Comment() {
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(Integer userId) {
        this.user = new User();
        user.setId(userId);
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
